﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;

namespace MINERP.CustomerManage.PickupPhoto
{
    public partial class FrmProcess : Form
    {
        public FrmProcess()
        {
            InitializeComponent();
        }
        int currentPosition = 0;
        private void timer1_Tick(object sender, EventArgs e)
        {
            try
            {
                progress1.Position = currentPosition;
                if (currentPosition == progress1.Properties.Maximum)
                {
                    currentPosition = progress1.Properties.Minimum;
                    progress1.Position = currentPosition;
                }
                currentPosition++;
            }
            catch (ThreadAbortException baorex)
            {
                Thread.ResetAbort();
            }
            catch (Exception ex)
            {
                MessageBox.Show("error:" + ex.Message);
            }
        }
    }
}
